package org.huzhp.data.exception;

/**
 * @Description: 数据异常类
 * @Author: huzp
 * @CreateDate: 2020/4/22 10:25
 * @Version: 1.0
 */
public class DataException extends RuntimeException{

    private int errorCode;

    public DataException(String message,int errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    public DataException(String message,int errorCode, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
